import ToolItem from "@/components/base/layout/tool-item"
import { redirect } from "next/navigation"

const tools = [
    { title: '典型工作岗位分析', subtitle: 'Analysis of typical job positions', description: '为您解析专业对应的岗位，并详述每个岗位的工作项目与任务。', link: '/ai', icon: '/images/tool.png' },
    { title: '课程体系构建', subtitle: 'Curriculum system construction', description: '创建、管理课程内容、设计学习路径的工具。', link: '/ai', icon: '/images/tool.png' },
    { title: '人才培养课程体系与培养目标对比分析', subtitle: 'Comparative analysis of talent training curriculum system and training objectives', description: '人才培养课程体系与培养目标对比分析。', link: '/ai', icon: '/images/tool.png' },
    { title: '教案助手', subtitle: 'Lesson Plan Assistant', description: '您的智能教学规划助手，为您定制具体、实用的教案，满足不同的教学需求。', link: '/ai', icon: '/images/tool.png' },
    { title: '备课内容生成', subtitle: 'Generating lesson preparation content', description: '帮助老师生成备课内容。', link: '/ai', icon: '/images/tool.png' },
    { title: '教学计划生成', subtitle: 'Teaching plan generation', description: '自动生成教学计划。', link: '/ai', icon: '/images/tool.png' },
    { title: '教学大纲生成', subtitle: 'Teaching syllabus generation', description: '根据需求和目标，自动生成详细的教学大纲和教学计划。', link: '/ai', icon: '/images/tool.png' },
    { title: '教案设计', subtitle: 'Lesson Plan Design', description: '辅助教师设计教学计划和教学资源，提升教学效果。', link: '/ai', icon: '/images/tool.png' },
]

const CoursePage = () => {
    redirect('https://sdlvtc.fanya.chaoxing.com/portal')
    return (
        <div className="flex flex-col items-center justify-center p-4 space-y-4 md:py-24 md:space-y-8">
            <h1 className="font-semibold text-2xl">AI Assistant</h1>
            <p className="text-muted-foreground text-sm">五分钟变革，搭建个性化知识库，实现多语言回答，专业快速，赋能教育多快好省地调⽤可靠创意能⼒。</p>
            <div className="w-full md:px-16 grid grid-cols-1 md:grid-cols-2 gap-4">
                {tools.map((tool, index) => (
                    <ToolItem key={index} title={tool.title} subtitle={tool.subtitle} description={tool.description} link={tool.link} icon={tool.icon} />
                ))}
            </div>
        </div>
    )
}

export default CoursePage